<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj = {}

        var obj2 = Object.create(obj,{
            name:{
                value:"老王",
                writable:true,
                configurable:true,
                enumerable:true
            },
            age:{
                value:18,
                enumerable:true
            }
        })

        console.log(obj2);

        obj2.name = '小李'

        // delete obj2.name;

        // console.log(obj2);

        for(var i in obj2){
            console.log(i);
        }
       

    </script>
</body>
</html>